package com.wf.demo.info.dao;


import com.wf.demo.info.pojo.Model;
import com.wf.demo.info.pojo.Parse;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

public interface ParseDAO  extends JpaRepository<Parse,Integer> {
    List<Parse> findByModel(Model model, Sort sort);
    List<Parse> findByModel(Model model);
    Page<Parse> findByModel(Model model, Pageable pageable);
    Parse findByModelAndAndDataIdentifier(Model model,String dataIdentifier);
    Parse findByDataNameAndModel(String dataName,Model model);
}
